package com.uex.dev.manage.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author wangc
 * @create 2023/10/26
 * @description
 */
@MapperScan(basePackages = {"com.uex.dev.manage.admin.dao"})
@SpringBootApplication
@ComponentScan(basePackages = {"com.uex.dev.manage.admin", "com.uex.dev.manage.common"})
public class Server {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(Server.class);
        application.addListeners(new ApplicationPidFileWriter("app.pid"));
        application.run(args);
    }
}
